<?php

namespace backend\modules\finance\controllers;



use backend\controllers\AdminController;
use backend\modules\business\models\BusinessPigSearch;

/**
 * Class SiteController
 * @package backend\modules\finance\controllers
 * 仔猪统计
 */
class SiteController extends AdminController
{



    /**
     * @return string
     * 应收
     */
    public function actionIndex()
    {
        $searchModel = new BusinessPigSearch();
        $dataProvider = $searchModel->search(\Yii::$app->request->queryParams);

        return $this->render('index', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
        ]);
    }


    /**
     * @return string
     * 总体财务
     */
    public function actionTotal()
    {
        $searchModel = new BusinessPigSearch();
        $dataProvider = $searchModel->search(\Yii::$app->request->queryParams);


        return $this->render('total', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
        ]);
    }





}




